var user = getUserInfo();

if (!user) {
    window.confirm("没有登录, 不允许进来");
}

var vue = new Vue({
    el: "#app",
    data: {
        owner: {},
        visitors: [
            {id: "5f1c1a1e43190000f60034c2", nickname: "lyf", headImgUrl: "/images/test/personal/lyf.jpg"},
            {id: "5f1c1a1e43190000f60034c3", nickname: "qsz", headImgUrl: "/images/test/personal/qsz.jpg"},
            {id: "5f1c1a1e43190000f60034c4", nickname: "zhy", headImgUrl: "/images/test/personal/zhy.jpg"}
        ],
        totalView: 200,
        todayView: 20
    },
    methods: {},
    filters: {},
    mounted: function () {
        var param = getParams();
        var ownerId = param.id; //窝的拥有者id
        var ar15 = getParams().ownerId;
        //获取统计数据
        ajaxGet("/personal/getnum1", {ownerId: ar15}, function (data) {
            var data1 = data.data;

            vue.todayView = data1;
        });
        ajaxGet("/personal/getnum2", {ownerId: ar15}, function (data) {
            var data1 = data.data;
            vue.totalView = data1;
        })


    }
});

